<?php
class QColumn
{	
	public function __construct($p_strCountry)
	{
		$this->_country	= $p_strCountry;
		$this->_table	= strtolower($p_strCountry).'_columns';
	}
	
	public function get($p_intAdminId)
	{
		$strQuery	= 'SELECT icolumn FROM '.$this->_table;
		if($p_intAdminId){
			$strQuery	.= ' WHERE admin_id='.intval($p_intAdminId);
		}
		$db			= Zend_Registry::get('db');
		$resultValue = $db->fetchAll($strQuery);
		$db->closeConnection();
		return $resultValue;
	}
}
?>